Repository navigation
Implement Long Tasks API for PerformanceObserver - #45473
rubennorte wants to merge 2 commits into
Conversation
|
This pull request was exported from Phabricator. Differential Revision: D55491870 |
Base commit: c82edec |
|
This pull request was exported from Phabricator. Differential Revision: D55491870 |
1 similar comment
|
This pull request was exported from Phabricator. Differential Revision: D55491870 |
|
This pull request was exported from Phabricator. Differential Revision: D55491870 |
8 similar comments
|
This pull request was exported from Phabricator. Differential Revision: D55491870 |
|
This pull request was exported from Phabricator. Differential Revision: D55491870 |
|
This pull request was exported from Phabricator. Differential Revision: D55491870 |
|
This pull request was exported from Phabricator. Differential Revision: D55491870 |
|
This pull request was exported from Phabricator. Differential Revision: D55491870 |
|
This pull request was exported from Phabricator. Differential Revision: D55491870 |
|
This pull request was exported from Phabricator. Differential Revision: D55491870 |
|
This pull request was exported from Phabricator. Differential Revision: D55491870 |
Differential Revision: D59820241
|
This pull request was exported from Phabricator. Differential Revision: D55491870 |
Summary: Pull Request resolved: #45473 This is a basic implementation of the Long Tasks API (https://w3c.github.io/longtasks/). It detects and reports long tasks when using the Event Loop (in the modern RuntimeScheduler) when a new feature flag for this purpose is enabled. This doesn't include attribution information at the moment. Changelog: [internal] Reviewed By: sammy-SC Differential Revision: D55491870
|
This pull request was exported from Phabricator. Differential Revision: D55491870 |
Summary: Pull Request resolved: #45492 Changelog: [internal] When testing the changes in #45473 / D55491870, I saw that the reported time spans for long tasks didn't perfectly align with the long tasks themselves in traces (Perfetto). Taking a closer look, I realized that I wasn't doing the conversion between times and durations from `chrono` and `DOMHighResTimeStamp` (a `double`) correctly, and we're doing this conversion very often. This moves the definition of `DOMHighResTimeStamp` to its own library and adds conversion methods to make sure we don't make this mistake in the future. Reviewed By: rshest Differential Revision: D59820241 fbshipit-source-id: c123920de56336da384ddc484f6ac9d287724301
|
This pull request has been merged in 64c4e38. |
Summary:
This is a basic implementation of the Long Tasks API (https://w3c.github.io/longtasks/).
It detects and reports long tasks when using the Event Loop (in the modern RuntimeScheduler) when a new feature flag for this purpose is enabled.
This doesn't include attribution information at the moment.
Changelog: [internal]
Reviewed By: sammy-SC
Differential Revision: D55491870